package com.lsh.oms.core.enums;

/**
 * Project Name: lsh-oms
 * @author peter
 * Date: 18/7/3
 * Time: 18/7/3.
 * 北京链商电子商务有限公司
 * Package name:com.lsh.oms.core.enums.
 * desc:类功能描述
 */
public enum ShippingReceiptStatus {
    /**
     *
     */
    UN_RECEIPT(0, "未生成有效签收"),
    RECEIPT(1, "已生成签收单");

    private final int index;
    private final String name;

    ShippingReceiptStatus(int index, String name) {
        this.index = index;
        this.name = name;
    }

    public static String getName(int index) {
        for (ShippingReceiptStatus c : ShippingReceiptStatus.values()) {
            if (c.getIndex() == index) {
                return c.name;
            }
        }
        return null;
    }

    public int getIndex() {
        return index;
    }

    public String getName() {
        return name;
    }
}
